STEP 17: When random_choice is 2, then computer picks "paper".

  • Go to and drag out String Variable. Drop it inside the last if statement, below .say().
  • Change the name of the new variable to computer_choice.
  • Change the value of the new variable to "paper".

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)